import request from '@/utils/request'

// 查询用户申请提现列表
export function listWithdrawal2(query) {
  return request({
    url: '/system/withdrawal2/list',
    method: 'get',
    params: query
  })
}

// 查询用户申请提现详细
export function getWithdrawal2(withdrawalId) {
  return request({
    url: '/system/withdrawal2/' + withdrawalId,
    method: 'get'
  })
}

// 新增用户申请提现
export function addWithdrawal2(data) {
  return request({
    url: '/system/withdrawal2',
    method: 'post',
    data: data
  })
}

// 修改用户申请提现
export function updateWithdrawal2(data) {
  return request({
    url: '/system/withdrawal2',
    method: 'put',
    data: data
  })
}

// 删除用户申请提现
export function delWithdrawal2(withdrawalId) {
  return request({
    url: '/system/withdrawal2/' + withdrawalId,
    method: 'delete'
  })
}

// 导出用户申请提现
export function exportWithdrawal2(query) {
  return request({
    url: '/system/withdrawal2/export',
    method: 'get',
    params: query
  })
}